// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import pubJs from './utils/mixin.js'
import 'babel-polyfill'
import 'es6-promise/auto'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import 'element-ui/lib/theme-chalk/display.css'
import {
  Loading, Image as VanImage
} from 'vant'
import 'vant/lib/index.css'
import './utils/adapt'
import '@/assets/main.styl'

Vue.config.productionTip = false;

//vantui 挂载
Vue.use(Loading);
Vue.use(VanImage);

//elementui 挂载
Vue.use(ElementUI);

//混合器
Vue.mixin(pubJs);

// 过滤器
import './utils/filter' 

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: {App},
  template: '<App/>'
})
